﻿// (c) Norbert Huffschmid
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.

using System.Windows;

namespace ShoutBox
{
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            // check for -c commandline argument

            if ((e.Args != null) && (e.Args.Length > 0) && e.Args[0].Equals("-c"))
            {
                this.Properties["StartCollapsed"] = true;
            }

            base.OnStartup(e);
        }
    }
}
